package com.ruoyi.match.service.impl;

import com.ruoyi.match.domain.MatchEquipment;
import com.ruoyi.match.mapper.MatchEquipmentMapper;
import com.ruoyi.match.service.IMatchEquipmentService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;


/**
 * 【请填写功能名称】Service业务层处理
 * 
 * @author å®è¿å
 * @date 2021-03-07
 */
@Service
public class MatchEquipmentServiceImpl implements IMatchEquipmentService
{
    @Autowired
    private MatchEquipmentMapper matchEquipmentMapper;

    /**
     * 查询【请填写功能名称】
     * 
     * @param id 【请填写功能名称】ID
     * @return 【请填写功能名称】
     */
    @Override
    public MatchEquipment selectMatchEquipmentById(String id)
    {
        return matchEquipmentMapper.selectMatchEquipmentById(id);
    }

    /**
     * 查询【请填写功能名称】列表
     * 
     * @param matchEquipment 【请填写功能名称】
     * @return 【请填写功能名称】
     */
    @Override
    public List<MatchEquipment> selectMatchEquipmentList(MatchEquipment matchEquipment)
    {
        return matchEquipmentMapper.selectMatchEquipmentList(matchEquipment);
    }

    /**
     * 新增【请填写功能名称】
     * 
     * @param matchEquipment 【请填写功能名称】
     * @return 结果
     */
    @Override
    public int insertMatchEquipment(MatchEquipment matchEquipment)
    {
        return matchEquipmentMapper.insertMatchEquipment(matchEquipment);
    }

    /**
     * 修改【请填写功能名称】
     * 
     * @param matchEquipment 【请填写功能名称】
     * @return 结果
     */
    @Override
    public int updateMatchEquipment(MatchEquipment matchEquipment)
    {
        return matchEquipmentMapper.updateMatchEquipment(matchEquipment);
    }

    /**
     * 批量删除【请填写功能名称】
     * 
     * @param ids 需要删除的【请填写功能名称】ID
     * @return 结果
     */
    @Override
    public int deleteMatchEquipmentByIds(String[] ids)
    {
        return matchEquipmentMapper.deleteMatchEquipmentByIds(ids);
    }

    /**
     * 删除【请填写功能名称】信息
     * 
     * @param id 【请填写功能名称】ID
     * @return 结果
     */
    @Override
    public int deleteMatchEquipmentById(String id)
    {
        return matchEquipmentMapper.deleteMatchEquipmentById(id);
    }

    @Override
    public List<MatchEquipment> selectAllWei(Integer i) {
        return matchEquipmentMapper.selectMatchEquipmentInterger(i);
    }
}
